package com.cloud.fork.service;

import com.cloud.fork.domain.Context;
import com.cloud.fork.domain.TPhone;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class PhoneLoadDataService extends AbstractLoadDataService {

    @Override
    public void load(Context context) {
        TPhone phone = new TPhone();
        phone.setId(1L);
        phone.setBrand("mi");
        phone.setPrice(new BigDecimal(1999.00));
        phone.setType("mi1");
        context.setPhone(phone);
    }
}
